package com.cx.springdataredisdemo;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * @Author songyahui
 * @Date 2023/9/18 10:34
 * @Description
 */
@Service
public class ScheduleTest {

    @Scheduled(cron = "0/10 * * * * ?")
    public void scheduleTest() {
        System.out.println("schedule test");
        throw new IndexOutOfBoundsException();
    }
}
